﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BusinessLogicLibrary
{
    using BusinessObjectLayer;
    using DataAccessLayer;
    using DataObjectLayer;
    using System.IO;
    using DataAccessLibrary;
    using DataAccessObjectLayer;

    public class FileBLL
    {
        public string ReadText(FileBOL _FileBOL)
        {
            FileDAL _FileDAL = new FileDAL(FileDOL.CommandStatus.ReadText, _FileBOL);
            return _FileDAL.ReadText();
        }
        public void DownloadFiles(FileBOL _FileBOL)
        {
            FileDAL _FileDAL = new FileDAL(FileDOL.CommandStatus.Read, _FileBOL);
            _FileDAL.DownloadFiles();
        }
        public void Write(FileBOL _FileBOL)
        {
            FileDAL _FileDAL = new FileDAL(FileDOL.CommandStatus.Write, _FileBOL);
            _FileDAL.Write();
        }
        public void WriteText(FileBOL _FileBOL)
        {
            FileDAL _FileDAL = new FileDAL(FileDOL.CommandStatus.WriteText, _FileBOL);
            _FileDAL.Write();
        }
        public string[] FileNames(FileBOL _FileBOL)
        {
            FileDAL _FileDAL = new FileDAL(FileDOL.CommandStatus.FileNames, _FileBOL);
            return _FileDAL.FileNames();
        }

        public static void Delete(FileBOL _FileBOL)
        {
            FileDAL _FileDAL = new FileDAL(FileDOL.CommandStatus.Delete, _FileBOL);
            _FileDAL.Delete();
        }
    }
}
